
import java.io.*;
public class TestinputfileStreamDyl {
	public static void main (String args[] ){
		int Dyl=0;
		FileInputStream in=null;
		try{
			long num=0;
			in=new FileInputStream("E:/资料/网页设计/calculator-master/calculator-master/index.html");
			while((Dyl=in.read())!=-1){
				System.out.print((char)Dyl);
				num++;
			}
			in.close();
			System.out.println();
			System.out.println("共读取了"+num+"个字节");
		}catch(FileNotFoundException D){
			System.out.println("不要调皮啊，请输入正确的路径，根本找不到你要的文件");
			System.exit(-1);
			
		}
		catch(IOException D1){
			System.out.println("文件读取错误");
		}
		
	}

}
